<?php

class Customer
{
  public function __sleep() {
    echo "I am in sleep\n\n";
    return array();
  }

  public function __wakeup() {
    echo "I am in wakeup\n\n";
  }
}


$c = new Customer();
$data = serialize($c)."<br>";
unserialize($data);

